﻿//
//
/////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

/////////////////////////////////////////////////////////////////////////////
namespace ThinMediaLibrary
{
    public class PlayListMediaCollection : ObservableCollection<PlayListMediaItem>
    {
        public PlayListMediaCollection()
        {
//        Add(new PlayListMediaItem() { Name = "Porque", Path = "G:\\Music\\Pochill\\Nothing But The Hill (2008)\\01  Porque.mp3" });
//        Add(new PlayListMediaItem() { Name = "Nel Blu", Path = "G:\\Music\\Pochill\\Nothing But The Hill (2008)\\02 Nel Blu.mp3" });
//        Add(new PlayListMediaItem() { Name = "Innocente Is Lost", Path = "G:\\Music\\Pochill\\Nothing But The Hill (2008)\\03 Innocente Is Lost.mp3" });
//        Add(new PlayListMediaItem() { Name = "Innocente Is Lost", Path = "G:\\Music\\Pochill\\Nothing But The Hill (2008)\\04 Innocente Is Lost.mp3" });
//        Add(new PlayListMediaItem() { Name = "Stay", Path = "G:\\Music\\Pochill\\Nothing But The Hill (2008)\\05 Stay.mp3" });
        }
                                                                                   
        ///////////////////////////////////////////////////////////////////////
        //public void Add(PlayListMediaItem mediaItem)
        //{
        //    if (mediaItem != null)
        //    {
        //        _mediaItems.Add(mediaItem);
        //    }
        //}
    }

    /////////////////////////////////////////////////////////////////////////
    public class PlayListMediaItem
    {
        private string _name;
        private string _path;
        private int _duration;//miliseconds

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Path
        {
            get { return _path; }
            set { _path = value; }
        }

        public int Duration
        {
            get { return _duration; }
            set { _duration = value; }
        }
    }

/////////////////////////////////////////////////////////////////////////////
}//ThinMediaLibrary
